package com.jdl.iscm.entity.enums;

/**
 * @Author: Ran
 * @Date: 2021/8/24
 **/
public enum StockParamEnum {

    DaySet("按天设置"), UnitSet("按件设置");

    private final String code;

    StockParamEnum(String code) {
        this.code = code;
    }

    public String code() {
        return this.code;
    }

    public static StockParamEnum ofCode(String code) {
        for (StockParamEnum value : StockParamEnum.values()) {
            if (value.code().equals(code)) {
                return value;
            }
        }
        return null;
    }
}
